package com.lcz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zhou.starter.jpacomment.annotation.ColumnComment;
import com.zhou.starter.jpacomment.annotation.TableComment;
import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


@Data
@TableName("sys_user")
@Table(name = "sys_user")
@Entity
@TableComment("用户表")
public class User implements Serializable {

    @Id
    @TableId(type = IdType.ASSIGN_UUID)
    private String id;


    @ColumnComment("姓名")
    private String userName;

    @ColumnComment("角色id")
    private String roleId;

//    @Column(length = 22)
//    @ColumnComment("年")
//    private Integer integerName;
//
//
//    @Column(precision = 10, scale = 2)
//    @ColumnComment("精度22")
//    private BigDecimal bigDecimalName;
//
//
//    @Column(length = 22)
//    @ColumnComment("长度")
//    private Long longName;
}
